package com.inspur.his.service.impl;

import com.inspur.his.mapper.RoMapper;
import com.inspur.his.pojo.Ro;
import com.inspur.his.pojo.RoExt;
import com.inspur.his.service.RoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;

@Service("roService")
public class RoServiceImpl implements RoService {
    @Autowired
    private RoMapper roMapper;

    @Override
    public List<RoExt> roList(HashMap map) {
        return roMapper.roList(map);
    }
    public void roAdd(Ro ro){ roMapper.roAdd(ro);
    }
    @Override
    public void yyroAdd(Ro ro){ roMapper.yyroAdd(ro);
    }
    @Override
    public void deleteRoById(String roid) {
        roMapper.deleteRoById(roid);
    }

    public List<Ro> getRoByRoid(String roid) {
        return roMapper.getRoByRoid(roid);
    }
}